var searchResultApp = angular.module("searchResultApp", []);
searchResultApp.controller("searchResultController", function($scope, $rootScope, $window, scCodeService, Popup, $location) {
    $scope.tab1 = false;
    $scope.tab2 = false;
    $scope.tab3 = false;
    $scope.tab = function(index) {
	    if (index == "1") {
	       	$scope.tab1 = $scope.tab1 == false?true:false;
	        $scope.tab2 = false;
	        $scope.tab3 = false;           
	    } else if (index == "2") {
	        $scope.tab2 = $scope.tab2 == false?true:false;
	        $scope.tab1 = false;
	        $scope.tab3 = false;
	        
	    } else if (index == "3") {
	        $scope.tab3 = $scope.tab3 == false?true:false;
	        $scope.tab1 = false;
	        $scope.tab2 = false;
	     
	    }
    } 
})
